package com.bit.service;

import com.bit.Model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    public User findUserById(int id){
        User user = new User();
        if(id==1){
            user.setId(1);
            user.setName("一号选手");
        }else{
            user.setId(2);
            user.setName("二号选手");
        }
        return user;
    }
    public void sayHi(String name){
        System.out.println(name+":hi service");
    }
}
